package com.eastcom.providor.service.extview;

import java.util.HashMap;
import java.util.Map;

import com.eastcom.bm.atom.RawData;

public class RawDataUtil {
	public static Map<String, Object> createRawDataBeanByRawData(RawData rawData){
		Map<String, Object> ret=new HashMap<String, Object>();
		if(rawData==null)
			return ret;
		ret.put("baselineDown", rawData.getBaselineDown());
		ret.put("baselineUp", rawData.getBaselineUp());
		ret.put("collectorDate", rawData.getCollectorDate());
		ret.put("datasetId", rawData.getDatasetId());
		ret.put("isNormal", rawData.getIsNormal());
		ret.put("kpiId", rawData.getKpiId());
		ret.put("neId", rawData.getNeId());
		ret.put("timeStamp", rawData.getTimeStamp());
		ret.put("validationType", rawData.getValidationType());
		ret.put("value", rawData.getValue());
		return ret;
	}
}
